<template>
	<view class="container">
		<ud-tabs key="6acb7667" id="6acb7667" :active.sync="activeTab" :tabTitles="tabTitles" />
		<ud-input-search key="ad53281d" id="ad53281d" :condition="condition[activeTab]" :search.sync="searchText" :style="{'marginTop':'1rpx'}" />
		<ud-list-card key="b613cb86" id="b613cb86" :data="listCardDataOrigin" :isLoop="true" :statusStyle="listCardStyle" :struct="listCard" :style="{'marginTop':'16rpx'}" @click="vvvvv" />
	</view>
</template>


<script>
export default {
	onLoad() {
	},
	onShow() {
	},
	onReady() {
	},
	onHide() {
	},
	onUnload() {
	},
	onResize() {
	},
	onPullDownRefresh() {
	},
	onShareAppMessage() {
	},
	onPageScroll() {
	},
	onBackPress() {
	},
	data() {
		return {
			"tabTitles": [
				{
					"id": 0,
					"text": "我的单据"
				},
				{
					"id": 1,
					"text": "待我审批"
				},
				{
					"id": 2,
					"text": "审批完成"
				}
			],
			"condition": [
				[
					{
						"title": "流程阶段",
						"field": "Phase",
						"tags": [
							{
								"id": -1,
								"text": "全部"
							},
							{
								"id": 0,
								"text": "未提交"
							},
							{
								"id": 1,
								"text": "审核中"
							},
							{
								"id": 2,
								"text": "待退货"
							},
							{
								"id": 3,
								"text": "退货中"
							},
							{
								"id": 4,
								"text": "已退货"
							},
							{
								"id": 5,
								"text": "退回"
							},
							{
								"id": 6,
								"text": "废弃"
							}
						]
					},
					{
						"title": "产品名称",
						"field": "productName",
						"tags": []
					}
				],
				[
					{
						"title": "产品名称",
						"field": "productName",
						"tags": []
					}
				],
				[
					{
						"title": "产品名称",
						"field": "productName",
						"tags": []
					}
				]
			],
			"listCard": {
				"title": "BuName",
				"status": "zt",
				"content": {
					"申请人员：": "CreateOperator",
					"申请单号：": "Code",
					"申请时间：": "CreateDate",
					"产品数量：": "Qty",
					"客户投诉单位：": "cdcName",
					"质量缺陷类型：": "WayName"
				}
			},
			"listCardStyle": {
				"未提交": "#5192ff",
				"审核中": "#5192ff",
				"待退货": "rgba(252, 109, 31, 1)",
				"退货中": "#5192ff",
				"已退货": "rgba(145, 154, 161, 1)",
				"退回": "#f55746",
				"废弃": "rgba(145, 154, 161, 1)",
				"完结": "rgba(145, 154, 161, 1)"
			},
			"listCardDataOrigin": [],
			"activeTab": 0,
			"condition[activeTab]": [
				[
					{
						"title": "流程阶段",
						"field": "Phase",
						"tags": [
							{
								"id": -1,
								"text": "全部"
							},
							{
								"id": 0,
								"text": "未提交"
							},
							{
								"id": 1,
								"text": "审核中"
							},
							{
								"id": 2,
								"text": "待退货"
							},
							{
								"id": 3,
								"text": "退货中"
							},
							{
								"id": 4,
								"text": "已退货"
							},
							{
								"id": 5,
								"text": "退回"
							},
							{
								"id": 6,
								"text": "废弃"
							}
						]
					},
					{
						"title": "产品名称",
						"field": "productName",
						"tags": []
					}
				],
				[
					{
						"title": "产品名称",
						"field": "productName",
						"tags": []
					}
				],
				[
					{
						"title": "产品名称",
						"field": "productName",
						"tags": []
					}
				]
			],
			"searchText": ""
		}		
	},
	methods: {
vvvvv: () => {
  this.jump('/pages/tab_1/tab_1')
},
	},
}
</script>
